from mainapp.models import UnsupervisedData, ClassifferLearningData


def last_queries(request):
    
    try:
        unsupervised_queries = UnsupervisedData.objects.all()
        supervised_queries = ClassifferLearningData.objects.all()
        
        return {'supervised_queries':supervised_queries, 'unsupervised_queries':unsupervised_queries}
    except:
        return {'unsupervised_queries':[], 'unsupervised_queries':[]}